@import'./modules/base';
@import'./modules/header.scss';
@import'./modules/floatbar.scss';
@import'./modules/footer.scss';

@mixin num-control {
    display: block;
    height: 18px;
    line-height: 18px;
    width: 15px;
    color: #8e8e8e;
    cursor: pointer;
}

// location
.Location{
    height: 45px;
}
// 主要内容
.container{
    width: 100%;
    overflow: hidden;
    margin-bottom: 20px;
    .neirong2{
        float: left;
        width: 991px;
        .product-news{
            height: 580px;
            background-color: #ffffff;
            overflow: hidden;
            margin-bottom: 16px;
            .product-img{
                width: 450px;
                margin-top: 17px;
                margin-left: 17px;
                margin-right: 56px;
                float: left;
                img{
                    width: 450px;
                    height: 450px;
                }
                .spec-n5{
                    height: 62px;
                    margin-top: 20px;
                    display: flex;
                    .control{
                        width: 37px;
                        text-align: center;
                        img{
                            width: 18px;
                            height: 62px;
                        }
                    }
                    ul{
                        width: 393px;
                        display: flex;
                        justify-content: space-evenly;
                        li{
                            width: 60px;
                            height: 60px;
                            border: 1px solid #999999;
                            display: flex;
                            justify-content: center;
                            align-items: center;
                            a{
                                display: block;
                                width: 58px;
                                height: 58px;
                                .spec-list-img{
                                    width: 58px;
                                    height: 58px;
                                }
                            }
                            .change{
                                border: 1px solid #e93d6d;
                            }
                        }
                    }
                }
            } 
            .product-value{
                width: 428px;
                float: left;
                margin-top: 17px;
                h2{
                    height: 26px;
                    line-height: 26px;
                    font-size: 18px;
                    font-weight: normal;
                    color: #333333;
                }
                // 产品介绍
                .summary{
                    font-size: 12px;
                    height: 16px;
                    line-height: 16px;
                    color: #8e8e8e;
                    margin-bottom: 19px;
                }
                // 产品价格
                dl{
                    height: 24px;
                    line-height: 24px;
                    display: flex;
                    margin-bottom: 22px;
                    dt{
                        font-size: 14px;
                        color: #8e8e8e;
                    }
                    dd{
                        font-size: 24px;
                        color: #ea0050;
                        font-weight: 600;
                        margin-left: 10px;
                    }
                }
                // 规格选择
                .product-size{
                    height: 26px;
                    line-height: 26px;
                    display: flex;
                    margin-bottom: 39px;
                    .selector{
                        font-size: 14px;
                        color: #8e8e8e;
                       
                    }
                    ul{
                        width: 280px;
                        height: 26px;
                        display: flex;
                        li{
                            width: 67px;
                            height: 23px;
                            line-height: 23px;
                            border: 1px solid #cccccc;
                            text-align: center;
                            margin-right: 10px;
                            font-size: 12px;
                            a{
                                color: #4f4f4f;
                            }
                        }
                        .change{
                            border: 2px solid #e50150;
                        }
                    }
                }
                // 口味选择
                .taste-choose{
                    height: 90px;
                    display: flex;
                    margin-bottom: 39px;
                    .selector{
                        font-size: 14px;
                        color: #8e8e8e;
                       
                    }
                    ul{
                        width: 280px;
                        height: 26px;
                        display: flex;
                        flex-wrap: wrap;
                        li{
                            height: 23px;
                            line-height: 23px;
                            border: 2px solid #cccccc;
                            text-align: center;
                            margin-right: 10px;
                            font-size: 12px;
                            padding: 0px 5px;
                            margin-bottom: 3px;
                            a{
                                color: #4f4f4f;
                            }
                        }
                        .change{
                            border: 2px solid #e50150;
                        }
                    }
                }
                // 添加到购物车
                .buy-box{
                    height: 38px;
                    line-height: 38px;
                    display: flex;
                    margin-bottom: 22px;
                    .selector{
                        font-size: 14px;
                        color: #8e8e8e;
                        margin-right: 11px;
                    }
                    ul{
                        width: 320px;
                        height: 38px;
                        display: flex;
                        li{
                            height: 36px;
                            line-height: 36px;
                            border: 1px solid #cccccc;
                            text-align: center;
                            margin-right: 20px;
                            font-size: 12px;
                            &:nth-child(1){
                                width: 60px;
                                height: 36px;
                                display: flex;
                                border: 1px solid #dddddd;
                                .left{
                                    width: 44px;
                                    height: 36px;
                                    border-right: 1px solid #dddddd;
                                    color: #8e8e8e;
                                }
                                .right{
                                    width: 15px;
                                    .numadd{
                                        @include num-control();
                                        border-bottom:  1px solid #dddddd;
                                    }
                                    .numreduce{
                                        @include num-control();
                                    }
                                }
                            }
                        }
                        .btn-buy{
                            display: block;
                            width: 108px;
                            height: 36px;
                            border: 1px solid #d5014b;
                            background-color: #feedf3;
                            font-size: 18px;
                            margin-right: 14px;
                            cursor: pointer;
                            outline: none;
                            a{
                                color: #d5014b;
                            }
                        }
                        .btn-addcarts{
                            text-align: center;
                            width: 150px;
                            height: 36px;
                            font-size: 16px;
                            border: none;
                            background-color: #e4004f;
                            display: flex;
                            color: #fff;
                            cursor: pointer;
                            outline: none;
                            div{
                                width: 18px;
                                height: 18px;
                                line-height: 18px;
                                text-align: center;
                                margin-left: 15px;
                                margin-top: 3px;
                            }
                        }
                    }
                }
                // 承诺
                .chengnuo{
                    width: 416px;
                    height: 29px;
                    display: flex;
                    align-items: center;
                    background-color: #f7f3e8;
                    padding-left: 12px;
                    margin-bottom: 26px;
                    font-size: 12px;
                    color: #5a5a58;
                    img{
                        margin-left: 3px;
                        margin-right: 3px;
                        margin-top: 2px;
                    }
                }
                // 收藏
                .enshrine{
                    height: 15px;
                    display: flex;
                    align-items: center;
                    .bianhao{
                        font-size: 14px;
                        margin-left: 11px;
                    }
                    .shoucang{
                        margin-left: 30px;
                        a{
                            display: flex;
                            color: #4f4f4f;
                            font-size: 14px;
                            line-height: 16px;
                            i{
                                color: #e5004f;
                                margin-right: 4px;
                            }
                        }
                    }
                }
            }
        }
        //product-content
        .product-content{
            background-color: #ffffff;
            .content-title{
                height: 30px;
                background-color: #999999;
                ul{
                    display: flex;
                    li{
                        width: 120px;
                        text-align: center;
                        height: 30px;
                        line-height: 30px;
                        color: #fff;
                        font-size: 12px;
                    }
                    .change{
                        background-color: #b6ab8f;
                    }
                }
            }
            .content2{
                width: 991px;
                padding-top: 22px;
                text-align: center;
                background-color: #ffffff;
                font-size: 0px;
                padding-bottom: 22px;
                .content-page1{
                    img{
                        width: 900px;
                    }
                }
            }
        }
    }

    // sidebar
    .sidebar{
        float: right;
        width: 195px;
        background-color: #ffffff;
        .redtitle{
            color: #ffffff;
            font-size: 12px;
            height: 30px;
            line-height: 30px;
            background-color: #e50150;
            padding-left: 12px;
        }
        ul{
            background-color: #ffffff;
            li{
                height: 243px;
                text-align: center;
                img{
                    width: 170px;
                    height: 170px;
                    margin-top: 10px;
                }
                p{
                    width: 170px;
                    height: 30px;
                    line-height: 30PX;
                    text-align: right;
                    color: #eb0050;
                    font-weight: 600;
                    font-size: 12px;
                    margin: 0 auto;
                }
                span{
                    width: 170px;
                    height: 13px;
                    line-height: 13px;
                    display: block;
                    margin: 0 auto;
                    text-align: left;
                    font-size: 12px;
                    color: #333333;
                }
            }
        }
    }
}